home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / DTS.Lib / DTS.Lib.headers / DTS.Lib.protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-18  |  11.4 KB  |  348 lines  |  [TEXT/MPS ]

  1. #ifndef __DLPROTOS__
  2. #define __DLPROTOS__
  3.  
  4. #ifndef __APPLEEVENTS__
  5. #include <AppleEvents.h>
  6. #endif
  7.  
  8. #ifndef __APPLETALK__
  9. #include <AppleTalk.h>
  10. #endif
  11.  
  12. #ifndef __LISTS__
  13. #include <Lists.h>
  14. #endif
  15.  
  16. #ifndef __MENUS__
  17. #include <Menus.h>
  18. #endif
  19.  
  20. #ifndef __PPCTOOLBOX__
  21. #include <PPCToolbox.h>
  22. #endif
  23.  
  24. #ifndef __STANDARDFILE__
  25. #include <StandardFile.h>
  26. #endif
  27.  
  28.  
  29. /************** AEConnect.c **************/
  30.  
  31. void            InitConnectAppleEvents(void);
  32. OSErr            SendConnect(FileRecHndl frHndl, char *theLocNBPType);
  33. WindowPtr        GetAEWindow(long windID_0, long windID_1);
  34.  
  35.  
  36.  
  37. /************** AERequired.c **************/
  38.  
  39. OSErr            InitRequiredAppleEvents(void);
  40.  
  41.  
  42.  
  43. /************** AEUtils.c **************/
  44.  
  45. #ifndef         __AEUTILS__
  46. #include        "AEUtils.h"
  47. #endif
  48.  
  49.  
  50.  
  51. /************** AEWFMT.c **************/
  52.  
  53. void    InitWFMTAppleEvents(void);
  54. OSErr    SendWFMTMessage(FileRecHndl frHndl, TreeObjHndl wobj, short messageType,
  55.                         ResType rtype, short resID, Handle *resHndl);
  56.  
  57.  
  58.  
  59. /************** ATUtils.c **************/
  60.  
  61. #ifndef         __ATUTILS__
  62. #include        "ATUtils.h"
  63. #endif
  64.  
  65.  
  66.  
  67. /************** CIconControl.c **************/
  68.  
  69. #ifndef         __CICONCONTROL__
  70. #include        "CIconControl.h"
  71. #endif
  72.  
  73.  
  74.  
  75. /************** CtlHandler.c **************/
  76.  
  77. #ifndef         __CTLHANDLER__
  78. #include        "CtlHandler.h"
  79. #endif
  80.  
  81.  
  82.  
  83. /************** DoEvent.c **************/
  84.  
  85. void            DoEvent(EventRecord *event);
  86.  
  87. /* •• DTS.Lib..framework calls these. •• */
  88. void            DoActivate(WindowPtr window);
  89. void            DoCursor(void);
  90.  
  91.  
  92.  
  93. /************** File.c **************/
  94.  
  95. /* •• DTS.Lib..framework calls these. •• */
  96. OSErr            InitDocument(FileRecHndl frHndl);
  97. long            InitDocumentSize(OSType sftype);
  98.  
  99.  
  100.  
  101. /************** File2.c **************/
  102.  
  103. OSErr            DefaultInitDocument(FileRecHndl frHndl, short version,
  104.                                     short numUndos, short numSaveUndos);
  105. OSErr            DisposeDocument(FileRecHndl frHndl);
  106. OSErr            NewDocument(FileRecHndl *returnHndl, OSType sftype, Boolean incTitleNum);
  107. OSErr            OpenDocument(FileRecHndl *result, FSSpecPtr fileToOpen, char permission);
  108. OSErr            SaveDocument(FileRecHndl frHndl, WindowPtr window, short saveMode);
  109. void            ConvertOldToNewSFReply(SFReply *oldReply, StandardFileReply *newReply);
  110. Boolean            DisplayGetFile(StandardFileReply *reply, short typeListLen, SFTypeList typeList);
  111. Boolean            DisplayPutFile(StandardFileReply *reply);
  112. OSErr            UseDocResFile(FileRecHndl frHndl, short *oldRes, char perm);
  113. OSErr            CloseDocResFile(FileRecHndl frHndl);
  114. long            GetModNum(void);
  115. Boolean            GetDocDirty(FileRecHndl frHndl);
  116. Boolean            GetWindowDirty(WindowPtr window);
  117. void            SetDocDirty(FileRecHndl frHndl);
  118. void            SetWindowDirty(WindowPtr window);
  119. OSErr            SetDefault(short newVRefNum, long newDirID, short *oldVRefNum, long *oldDirID);
  120. OSErr            RestoreDefault(short oldVRefNum, long oldDirID);
  121.  
  122. OSErr            GetFileLocation(short refNum, short *vRefNum, long *dirID, StringPtr fileName);
  123.  
  124.  
  125.  
  126. /************** Init.c **************/
  127.  
  128. void            Initialize(short moreMasters, long minHeap, long minSpace,
  129.                            ProcPtr init1, ProcPtr init2);
  130. void            StartDocuments(void);
  131.  
  132.  
  133.  
  134. /************** GWLayers.c **************/
  135.  
  136. #ifndef         __GWLAYERS__
  137. #include        "GWLayers.h"
  138. #endif
  139.  
  140.  
  141.  
  142. /************** ListControl.c **************/
  143.  
  144. #ifndef         __LISTCONTROL__
  145. #include        "ListControl.h"
  146. #endif
  147.  
  148.  
  149.  
  150. /************** Menu.c **************/
  151.  
  152. /* •• DTS.Lib..framework calls these. •• */
  153. void            DoAdjustMenus(void);
  154. Boolean            DoMenuCommand(short menuID, short menuItem);
  155.  
  156.  
  157.  
  158. /************** PICTControl.c **************/
  159.  
  160. #ifndef         __PICTCONTROL__
  161. #include        "PICTControl.h"
  162. #endif
  163.  
  164.  
  165.  
  166. /************** PPC.c **************/
  167.  
  168. #ifndef         __PPC__
  169. #include        "PPC.h"
  170. #endif
  171.  
  172.  
  173.  
  174. /************** Print.c **************/
  175.  
  176. OSErr            PrintDocument(FileRecHndl frHndl, Boolean jobDlg, Boolean firstJob);
  177. void            DonePrinting(void);
  178. OSErr            PresentStyleDialog(FileRecHndl frHndl);
  179.  
  180.  
  181.  
  182. /************** TextEditControl.c **************/
  183.  
  184. #ifndef         __TEXTEDITCONTROL__
  185. #include        "TextEditControl.h"
  186. #endif
  187.  
  188.  
  189.  
  190. /************** TreeObj.c **************/
  191.  
  192. #ifndef         __TREEOBJ__
  193. #include        "TreeObj.h"
  194. #endif
  195.  
  196.  
  197.  
  198. /************** ViewHierarchy.c **************/
  199.  
  200. OSErr            VHInitDocument(FileRecHndl frHndl);
  201. long            VHFileTypeSize(void);
  202. void            VHRootInfo(TreeObjHndl root, char *cptr);
  203. void            VHFileRecInfo(TreeObjHndl root, char *cptr);
  204.  
  205.  
  206.  
  207. /************** Window2.c **************/
  208.  
  209. OSErr            DoNewWindow(FileRecHndl frHndl, WindowPtr *retWindow,
  210.                             WindowPtr relatedWindow, WindowPtr behind);
  211. void            NewWindowTitle(WindowPtr window, StringPtr altTitle);
  212. Boolean            DisposeAllWindows(void);
  213. Boolean            DisposeOneWindow(WindowPtr window, short saveMode);
  214. WindowPtr        SetFilePort(FileRecHndl frHndl);
  215. void            DoResizeWindow(WindowPtr window, short oldh, short oldv);
  216. void            DoUpdateSeparate(WindowPtr window, RgnHandle *contRgn, RgnHandle *frameRgn);
  217. void            BeginContent(WindowPtr window);
  218. void            EndContent(WindowPtr window);
  219. void            BeginFrame(WindowPtr window);
  220. void            EndFrame(WindowPtr window);
  221. void            AdjustScrollBars(WindowPtr window);
  222. void            GetContentOrigin(WindowPtr window, Point *contOrg);
  223. void            SetContentOrigin(WindowPtr window, long newh, long newv);
  224. void            GetContentRect(WindowPtr window, Rect *contRct);
  225. void            SetDocSize(FileRecHndl frHndl, long hSize, long vSize);
  226. void            SetSidebarSize(FileRecHndl frHndl, short newLeft, short newTop);
  227. void            SetScrollIndentSize(FileRecHndl frHndl, short newh, short newv);
  228. FileRecHndl        GetNextDocument(WindowPtr window, OSType sftype);
  229. WindowPtr        GetNextWindow(WindowPtr window, OSType sftype);
  230. WindowPtr        GetPreviousWindow(WindowPtr window);
  231. void            DoZoomWindow(WindowPtr window, EventRecord *event, short zoomDir);
  232. RgnHandle        DoCalcFrameRgn(WindowPtr window);
  233. RgnHandle        DoCalcScrollRgn(WindowPtr window);
  234. void            DoContentClick(WindowPtr window, EventRecord *event, Boolean firstClick);
  235. void            DoDragWindow(WindowPtr window, EventRecord *event, Rect bounds);
  236. void            DoDrawFrame(WindowPtr window, Boolean activate);
  237. OSErr            DoFreeDocument(FileRecHndl frHndl);
  238. OSErr            DoFreeWindow(FileRecHndl frHndl, WindowPtr window);
  239. OSErr            DoImageDocument(FileRecHndl frHndl);
  240. OSErr            DoInitContent(FileRecHndl frHndl, WindowPtr window);
  241. Boolean            DoKeyDown(EventRecord *event);
  242. void            DoMouseDown(EventRecord *event);
  243. short            MapMItem(short menuID, short menuItem);
  244. short            UnmapMItem(short menuID, short menuItem);
  245. OSErr            DefaultFreeDocument(FileRecHndl frHndl);
  246. OSErr            DoReadDocument(FileRecHndl frHndl);
  247. OSErr            DoReadDocumentHeader(FileRecHndl frHndl);
  248. OSErr            DefaultReadDocument(FileRecHndl frHndl);
  249. OSErr            DefaultReadDocumentHeader(FileRecHndl frHndl);
  250. OSErr            DefaultReadDocumentFixup(FileRecHndl frHndl);
  251. OSErr            DoWriteDocument(FileRecHndl frHndl);
  252. OSErr            DoWriteDocumentHeader(FileRecHndl frHndl);
  253. OSErr            DefaultWriteDocument(FileRecHndl frHndl);
  254. OSErr            DefaultWriteDocumentHeader(FileRecHndl frHndl);
  255. void            DoResizeContent(WindowPtr window, short oldh, short oldv);
  256. void            DoScrollFrame(WindowPtr window, long dh, long dv);
  257. void            DoUndoFixup(FileRecHndl frHndl, Point contOrg, Boolean afterUndo);
  258. WindowPtr        GetOldLocWindow(short id, Ptr storage, Boolean vis, WindowPtr relWindow,
  259.                                 WindowPtr behind, Boolean inColor, Rect sizeInfo, long refCon);
  260. void            CleanSendBehind(WindowPtr window, WindowPtr afterWindow);
  261. void            CleanSendInFront(WindowPtr window, WindowPtr beforeWindow);
  262. void            HiliteWindows(void);
  263. void            UnhiliteWindows(void);
  264. void            DoUpdate(WindowPtr window);
  265. void            DoSetCursor(Cursor *cursor);
  266. CursPtr            DoSetResCursor(short crsrID);
  267. void            DoWindowCursor(void);
  268. WindowPtr        FrontWindowOfType(long wkind, Boolean firstVis);
  269. short            HCenteredAlert(short alertID, WindowPtr relatedWindow, ModalFilterProcPtr filter);
  270. OSErr            GetWindowFormats(void);
  271. OSErr            HReadWindowFormats(Handle wfmt);
  272. OSErr            AddControlSet(WindowPtr window, OSType sftype, short visMode,
  273.                               short xoffset, short yoffset, CObjCtlHndl cco);
  274. CObjCtlHndl        GetControlSet(WindowPtr window, OSType sftype, ControlHandle *retDataCtl);
  275. void            DisplayControlSet(WindowPtr window, OSType sftype, short visMode);
  276. void            DisposeControlSet(WindowPtr window, OSType sftype);
  277. Boolean            DoAdjustMBARMenus(WindowPtr window, short menuBarID);
  278. OSErr            OpenRuntimeOnlyAutoNewWindows(void);
  279. OSErr            NewDocumentWindow(FileRecHndl *frHndl, OSType sftype, Boolean incTitleNum);
  280. OSErr            OpenDocumentWindow(FileRecHndl *frHndl, FSSpecPtr fileToOpen, char permission);
  281.  
  282.  
  283.  
  284. /************** Window.c **************/
  285.  
  286. /* •• DTS.Lib..framework calls these. •• */
  287. void            CalcFrameRgn(FileRecHndl frHndl, WindowPtr window, RgnHandle rgn);
  288. void            ContentClick(WindowPtr window, EventRecord *event, Boolean firstCLick);
  289. Boolean            ContentKey(WindowPtr window, EventRecord *event, Boolean *passThrough);
  290. void            DrawFrame(FileRecHndl frHndl, WindowPtr window, Boolean activate);
  291. OSErr            FreeDocument(FileRecHndl frHndl);
  292. OSErr            FreeWindow(FileRecHndl frHndl, WindowPtr window);
  293. OSErr            ImageDocument(FileRecHndl frHndl);
  294. OSErr            InitContent(FileRecHndl frHndl, WindowPtr window);
  295. OSErr            ReadDocument(FileRecHndl frHndl);
  296. void            ResizeContent(WindowPtr window, short oldh, short oldv);
  297. void            ScrollFrame(FileRecHndl frHndl, WindowPtr window, long dh, long dv);
  298. void            UndoFixup(FileRecHndl frHndl, Point contOrg, Boolean afterUndo);
  299. Boolean            WindowCursor(FileRecHndl frHndl, WindowPtr window, Point globalPt);
  300. void            WindowGoneFixup(WindowPtr window);
  301. OSErr            WriteDocument(FileRecHndl frHndl);
  302. OSErr            DoOpenApplication(void);
  303. Boolean            AdjustMenuItems(WindowPtr window, short menuID);
  304. Boolean            DoMenuItem(WindowPtr window, short menuID, short menuItem);
  305.  
  306.  
  307.  
  308. /************** WindowDialog.c **************/
  309.  
  310. /* •• DTS.Lib..framework calls these. •• */
  311. void            DialogCalcFrameRgn(FileRecHndl frHndl, WindowPtr window, RgnHandle rgn);
  312. void            DialogContentClick(WindowPtr window, EventRecord *event, Boolean firstCLick);
  313. Boolean            DialogContentKey(WindowPtr window, EventRecord *event, Boolean *passThrough);
  314. void            DialogDrawFrame(FileRecHndl frHndl, WindowPtr window, Boolean activate);
  315. OSErr            DialogFreeDocument(FileRecHndl frHndl);
  316. OSErr            DialogFreeWindow(FileRecHndl frHndl, WindowPtr window);
  317. OSErr            DialogImageDocument(FileRecHndl frHndl);
  318. OSErr            DialogInitContent(FileRecHndl frHndl, WindowPtr window);
  319. void            DialogResizeContent(WindowPtr window, short oldh, short oldv);
  320. void            DialogScrollFrame(FileRecHndl frHndl, WindowPtr window, long dh, long dv);
  321. void            DialogUndoFixup(FileRecHndl frHndl, Point contOrg, Boolean afterUndo);
  322. Boolean            DialogWindowCursor(FileRecHndl frHndl, WindowPtr window, Point globalPt);
  323. void            DialogWindowGoneFixup(WindowPtr window);
  324. Boolean            DialogAdjustMenuItems(WindowPtr window, short menuID);
  325. Boolean            DialogDoMenuItem(WindowPtr window, short menuID, short menuItem);
  326.  
  327.  
  328. /************** WindowPalette.c **************/
  329.  
  330. /* •• DTS.Lib..framework calls these. •• */
  331. void            PaletteCalcFrameRgn(FileRecHndl frHndl, WindowPtr window, RgnHandle rgn);
  332. void            PaletteContentClick(WindowPtr window, EventRecord *event, Boolean firstCLick);
  333. Boolean            PaletteContentKey(WindowPtr window, EventRecord *event, Boolean *passThrough);
  334. void            PaletteDrawFrame(FileRecHndl frHndl, WindowPtr window, Boolean activate);
  335. OSErr            PaletteFreeDocument(FileRecHndl frHndl);
  336. OSErr            PaletteFreeWindow(FileRecHndl frHndl, WindowPtr window);
  337. OSErr            PaletteImageDocument(FileRecHndl frHndl);
  338. OSErr            PaletteInitContent(FileRecHndl frHndl, WindowPtr window);
  339. void            PaletteResizeContent(WindowPtr window, short oldh, short oldv);
  340. void            PaletteScrollFrame(FileRecHndl frHndl, WindowPtr window, long dh, long dv);
  341. void            PaletteUndoFixup(FileRecHndl frHndl, Point contOrg, Boolean afterUndo);
  342. Boolean            PaletteWindowCursor(FileRecHndl frHndl, WindowPtr window, Point globalPt);
  343. void            PaletteWindowGoneFixup(WindowPtr window);
  344.  
  345.  
  346.  
  347. #endif
  348.